<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MCP-12306 智能购票服务 | 自动化铁路票务解决方案</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
        }
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .code-block {
            background: #1e293b;
            border-left: 4px solid #3b82f6;
        }
        .step-number {
            width: 36px;
            height: 36px;
            background-color: #3b82f6;
            color: white;
        }
        .mermaid {
            background-color: white;
            border-radius: 0.5rem;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white">
        <div class="container mx-auto px-6 py-24 md:py-32">
            <div class="max-w-4xl mx-auto text-center">
                <h1 class="text-4xl md:text-5xl lg:text-6xl font-bold leading-tight mb-6 font-serif">
                    MCP-12306 智能购票服务
                </h1>
                <p class="text-xl md:text-2xl opacity-90 mb-10 max-w-3xl mx-auto">
                    为开发者打造的自动化铁路票务解决方案，告别繁琐购票流程
                </p>
                <div class="flex flex-col sm:flex-row justify-center gap-4">
                    <a href="#features" class="bg-white text-blue-700 hover:bg-blue-50 px-8 py-3 rounded-lg font-medium transition duration-300 transform hover:scale-105">
                        探索功能 <i class="fas fa-arrow-down ml-2"></i>
                    </a>
                    <a href="https://github.com/drfccv/mcp-server-12306" class="bg-transparent border-2 border-white hover:bg-white hover:text-blue-700 px-8 py-3 rounded-lg font-medium transition duration-300 transform hover:scale-105">
                        <i class="fab fa-github mr-2"></i> GitHub 仓库
                    </a>
                </div>
            </div>
        </div>
    </section>

    <!-- Problem Section -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-6 font-serif">传统购票的痛点</h2>
                <p class="text-lg text-slate-600">手动操作、效率低下、容易错过最佳购票时机</p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="bg-slate-50 p-8 rounded-xl">
                    <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center text-blue-600 mb-4">
                        <i class="fas fa-sync-alt text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">手动刷新</h3>
                    <p class="text-slate-600">需要不断手动刷新页面检查余票状态，耗时耗力</p>
                </div>
                
                <div class="bg-slate-50 p-8 rounded-xl">
                    <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center text-blue-600 mb-4">
                        <i class="fas fa-clock text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">时间敏感</h3>
                    <p class="text-slate-600">容易错过放票时间，导致无法获取理想车次</p>
                </div>
                
                <div class="bg-slate-50 p-8 rounded-xl">
                    <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center text-blue-600 mb-4">
                        <i class="fas fa-tasks text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">流程繁琐</h3>
                    <p class="text-slate-600">购票流程复杂，需要多次点击和填写信息</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section id="features" class="py-16 bg-slate-50">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-6 font-serif">核心功能</h2>
                <p class="text-lg text-slate-600">智能化的铁路票务查询和预订服务，为开发者提供高效解决方案</p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                <div class="feature-card bg-white p-8 rounded-xl shadow-md transition duration-300">
                    <div class="flex items-start">
                        <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center text-blue-600 mr-4">
                            <i class="fas fa-search text-xl"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-bold mb-3">智能票务查询</h3>
                            <p class="text-slate-600">支持多车次、多日期、多席别的实时余票查询，全面覆盖您的出行需求</p>
                        </div>
                    </div>
                </div>
                
                <div class="feature-card bg-white p-8 rounded-xl shadow-md transition duration-300">
                    <div class="flex items-start">
                        <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center text-blue-600 mr-4">
                            <i class="fas fa-robot text-xl"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-bold mb-3">自动化预订</h3>
                            <p class="text-slate-600">可配置的自动抢票功能，定时检测余票并自动下单，显著提高购票成功率</p>
                        </div>
                    </div>
                </div>
                
                <div class="feature-card bg-white p-8 rounded-xl shadow-md transition duration-300">
                    <div class="flex items-start">
                        <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center text-blue-600 mr-4">
                            <i class="fas fa-plug text-xl"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-bold mb-3">MCP协议集成</h3>
                            <p class="text-slate-600">与现有开发环境无缝对接，便于二次开发和功能扩展</p>
                        </div>
                    </div>
                </div>
                
                <div class="feature-card bg-white p-8 rounded-xl shadow-md transition duration-300">
                    <div class="flex items-start">
                        <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center text-blue-600 mr-4">
                            <i class="fas fa-bell text-xl"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-bold mb-3">实时状态监控</h3>
                            <p class="text-slate-600">动态监控车票状态变化，及时推送通知，不错过任何购票机会</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Architecture Diagram -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-6 font-serif">系统架构</h2>
                <p class="text-lg text-slate-600">基于MCP协议的模块化设计，灵活可扩展</p>
            </div>
            
            <div class="mermaid max-w-4xl mx-auto">
                graph TD
                    A[用户配置] --> B[MCP客户端]
                    B --> C[MCP服务器]
                    C --> D[12306接口]
                    D --> C
                    C --> E[通知服务]
                    E --> F[用户]
                    C --> G[数据库]
            </div>
        </div>
    </section>

    <!-- Use Cases -->
    <section class="py-16 bg-slate-50">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-6 font-serif">使用场景</h2>
                <p class="text-lg text-slate-600">适用于多种出行需求的自动化解决方案</p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                <div class="bg-white p-8 rounded-xl shadow-md">
                    <div class="flex items-center mb-6">
                        <div class="w-14 h-14 bg-blue-600 rounded-full flex items-center justify-center text-white mr-4">
                            <i class="fas fa-briefcase text-2xl"></i>
                        </div>
                        <h3 class="text-2xl font-bold">商务出行管理</h3>
                    </div>
                    <p class="text-slate-600">
                        企业可以为员工统一配置购票需求，系统自动处理票务预订，减少人工成本。特别适合经常需要出差的团队，可以批量管理多个员工的出行计划。
                    </p>
                </div>
                
                <div class="bg-white p-8 rounded-xl shadow-md">
                    <div class="flex items-center mb-6">
                        <div class="w-14 h-14 bg-blue-600 rounded-full flex items-center justify-center text-white mr-4">
                            <i class="fas fa-user text-2xl"></i>
                        </div>
                        <h3 class="text-2xl font-bold">个人出行助手</h3>
                    </div>
                    <p class="text-slate-600">
                        个人用户可设置常用路线，系统在合适时机自动抢票，避免错过购票时间。支持节假日高峰期自动监测余票，解放您的双手和时间。
                    </p>
                </div>
            </div>
        </div>
    </section>

    <!-- Advantages -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-6 font-serif">优势与特色</h2>
                <p class="text-lg text-slate-600">为什么选择MCP-12306解决方案</p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="text-center">
                    <div class="w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 mx-auto mb-6">
                        <i class="fas fa-expand-arrows-alt text-3xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">卓越的扩展性</h3>
                    <p class="text-slate-600">基于MCP协议架构，支持自定义脚本和插件开发，可根据需求灵活扩展功能</p>
                </div>
                
                <div class="text-center">
                    <div class="w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 mx-auto mb-6">
                        <i class="fas fa-code text-3xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">开发者友好</h3>
                    <p class="text-slate-600">提供丰富的API接口，便于与其他系统集成，满足企业级应用需求</p>
                </div>
                
                <div class="text-center">
                    <div class="w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 mx-auto mb-6">
                        <i class="fas fa-wallet text-3xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">经济高效</h3>
                    <p class="text-slate-600">开源免费项目，支持Docker容器化部署，降低运营成本</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Getting Started -->
    <section class="py-16 bg-slate-50">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-6 font-serif">快速上手指南</h2>
                <p class="text-lg text-slate-600">只需简单几步，即可开始使用MCP-12306服务</p>
            </div>
            
            <div class="max-w-3xl mx-auto">
                <div class="flex items-start mb-8">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center font-bold mr-6">1</div>
                    <div>
                        <h3 class="text-xl font-bold mb-2">克隆项目</h3>
                        <p class="text-slate-600 mb-4">将项目克隆到您的本地开发环境</p>
                        <div class="code-block text-white p-4 rounded-lg font-mono text-sm overflow-x-auto">
                            git clone https://github.com/drfccv/mcp-server-12306.git
                        </div>
                    </div>
                </div>
                
                <div class="flex items-start mb-8">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center font-bold mr-6">2</div>
                    <div>
                        <h3 class="text-xl font-bold mb-2">配置环境</h3>
                        <p class="text-slate-600 mb-4">安装必要的依赖项和运行环境</p>
                        <div class="code-block text-white p-4 rounded-lg font-mono text-sm overflow-x-auto">
                            npm install<br>
                            # 或使用Docker<br>
                            docker-compose up -d
                        </div>
                    </div>
                </div>
                
                <div class="flex items-start mb-8">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center font-bold mr-6">3</div>
                    <div>
                        <h3 class="text-xl font-bold mb-2">修改配置</h3>
                        <p class="text-slate-600 mb-4">编辑配置文件，添加您的账户信息和购票偏好</p>
                        <div class="code-block text-white p-4 rounded-lg font-mono text-sm overflow-x-auto">
                            // config.json<br>
                            {<br>
                            &nbsp;&nbsp;"username": "您的12306账号",<br>
                            &nbsp;&nbsp;"password": "您的密码",<br>
                            &nbsp;&nbsp;"routes": ["北京-上海", "广州-深圳"]<br>
                            }
                        </div>
                    </div>
                </div>
                
                <div class="flex items-start">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center font-bold mr-6">4</div>
                    <div>
                        <h3 class="text-xl font-bold mb-2">启动服务</h3>
                        <p class="text-slate-600 mb-4">运行服务并根据需要调整参数</p>
                        <div class="code-block text-white p-4 rounded-lg font-mono text-sm overflow-x-auto">
                            npm start<br>
                            # 监控日志输出<br>
                            tail -f logs/mcp.log
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- MCP Client Example -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-6 font-serif">MCP客户端配置示例</h2>
                <p class="text-lg text-slate-600">简单配置即可接入您的应用系统</p>
            </div>
            
            <div class="max-w-3xl mx-auto bg-slate-50 p-8 rounded-xl">
                <div class="flex items-center mb-6">
                    <div class="w-10 h-10 bg-blue-600 rounded-lg flex items-center justify-center text-white mr-4">
                        <i class="fas fa-code text-lg"></i>
                    </div>
                    <h3 class="text-xl font-bold">基本配置</h3>
                </div>
                
                <div class="code-block text-white p-4 rounded-lg font-mono text-sm overflow-x-auto">
                    {<br>
                    &nbsp;&nbsp;"mcpServers": {<br>
                    &nbsp;&nbsp;&nbsp;&nbsp;"12306": {<br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"url": "http://localhost:8000/mcp"<br>
                    &nbsp;&nbsp;&nbsp;&nbsp;}<br>
                    &nbsp;&nbsp;}<br>
                    }
                </div>
                
                <div class="mt-6 text-slate-600">
                    <p>将上述配置添加到您的MCP客户端配置文件中，即可开始使用12306购票服务。支持HTTP和WebSocket两种通信方式，可根据实际需求选择。</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Final CTA -->
    <section class="py-16 hero-gradient text-white">
        <div class="container mx-auto px-6 text-center">
            <h2 class="text-3xl md:text-4xl font-bold mb-6 font-serif">准备好开始自动化购票体验了吗？</h2>
            <p class="text-xl opacity-90 mb-8 max-w-2xl mx-auto">立即访问GitHub仓库，获取完整文档和源码</p>
            <a href="https://github.com/drfccv/mcp-server-12306" class="inline-block bg-white text-blue-700 hover:bg-blue-50 px-8 py-3 rounded-lg font-medium transition duration-300 transform hover:scale-105">
                <i class="fab fa-github mr-2"></i> 访问 GitHub 仓库
            </a>
        </div>
    </section>

    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
        
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>
</html>